package vashion.azeroth.core.activity;

/**
 * 活动及活动内容详情的状态
 * <p/>
 * 创建时间: 2014-06-21
 */
public enum ActiveStatusEnums {

    EFFECT((short) 0), // 0：生效

    EDITING((short) (1)), //1: 编辑中

    DELETED((short) (-1)); //-1: 删除

    final private Short status;

    ActiveStatusEnums(Short status) {
        this.status = status;
    }

    public static ActiveStatusEnums valueOf(Short status) {
        ActiveStatusEnums t = null;
        for (ActiveStatusEnums tt : ActiveStatusEnums.values()) {
            if (tt.getStatus().equals(status)) {
                t = tt;
                break;
            }
        }
        return t;
    }

    public Short getStatus() {
        return status;
    }


}
